from flask import Flask, request, jsonify

class Logger:
    def __init__(self):
        self.error = []

    @staticmethod
    def debug_logger(error_code,error_message):
        raise Exception("aivo error:" + error_code,error_message)

    @staticmethod
    def success(message):
        return jsonify({
            "status":1,
            "data":message
            })
    
    @staticmethod
    def error(message,info,obj):
        return jsonify({
            "status":0,
            "error_message":message,
            "info":info,
            "aivoobj":obj
        })